<?php
namespace App\Admin\Override;

use Dcat\Admin\Form\Field;

class FileExpend extends Field {
    public function __construct($label = null,$params = [])
    {
        $this->label = $label;
        $this->files = $params[0];
        $this->id = $params[1];
    }

    public function render()
    {
        if (! $this->label) {
            return '<hr/>';
        }

        return view('common.audit_file_expend',['label'=>$this->label,'newData'=>$this->files,'id'=>$this->id]);
    }
}
